package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.dromara.system.domain.CreditCardRewardRecords;
import org.dromara.system.domain.bo.CreditCardRewardRecordsBo;
import org.dromara.system.domain.bo.QueryTotalTransactionBySnsBo;
import org.dromara.system.domain.vo.CreditCardRewardRecordsVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.vo.CreditCardRewardVo;

import java.math.BigDecimal;

/**
 * 刷卡奖励Mapper接口
 *
 * @author Lion Li
 * @date 2025-07-15
 */
public interface CreditCardRewardRecordsMapper extends BaseMapperPlus<CreditCardRewardRecords, CreditCardRewardRecordsVo> {

    IPage<CreditCardRewardRecordsVo> findAll(IPage<CreditCardRewardRecordsVo> page,@Param("query") CreditCardRewardRecordsBo bo);

    CreditCardRewardVo findStatistics(@Param("query") CreditCardRewardRecordsBo bo);

    BigDecimal queryCashBackPointsByUser(@Param("query") QueryTotalTransactionBySnsBo bo);
}
